#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

#include "sock.h"


int main(int argc, char **argv){
	if (argc != 3) {
    	fprintf(stderr, "Usage: %s [ip] [port]\n", argv[0]);
    	exit(-1);
 	}
 	int sock_fd;
 	create_and_conn(&sock_fd, "127.0.0.1", 9999);
 	

 	getFile(sock_fd);

 	
 	close(sock_fd);
 	return 0;

}
